<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Information extends WxHomeController {

	function __construct() {
		parent::__construct();
		$this -> sidebar = "Information";
		
	}
    function Index(){
        $this -> load ->model("Admin_model");
        $connar=array();

        $connar['items']="db_admin.id,db_admin.username,db_admin.role_id,db_admin.phone,db_admin.usercode";
        $connar['where']=$this->sqlEscape("db_admin.id=??",array($_SESSION[SESS_USER_HOME]['id']));
        $result=$this -> Admin_model ->get_single_full($connar);
        $result['role_id']= (new WebRole())->show($result['role_id']);
        $this -> load ->view("home/information",$result);

    }



}